home *** CD-ROM | disk | FTP | other *** search
- /*
- ### procedure for resizing combined space canvases ###
- */
-
- #include <suntool/sunview.h>
- #include <suntool/canvas.h>
-
- void aux_resize_proc(canvas)
- Canvas canvas;
- {
- int i;
- extern int aux_win_i,aux_max;
- extern Canvas *aux_canvas;
- extern int aux_xcanvas,aux_ycanvas,aux_xwindow,aux_ywindow,aux_xwidth,aux_ywidth,aux_panel_height;
- extern Frame *aux_frame;
-
- for(i=0;i<aux_max;i++){
- if(canvas == aux_canvas[i]){
- aux_win_i = i;
- }
- }
- aux_xwindow = (int)window_get(aux_frame[aux_win_i],WIN_WIDTH);
- aux_ywindow = (int)window_get(aux_frame[aux_win_i],WIN_HEIGHT);
- aux_xcanvas= aux_xwindow;
- aux_ycanvas= aux_ywindow;
- aux_xwidth= aux_xcanvas;
- aux_ywidth= aux_ycanvas - aux_panel_height;
- }
-